package priv.menguer.intercepting.controller;

import priv.menguer.intercepting.service.Filter;

/**
 * @Title FilterManager.java
 * @description TODO
 * @time 2018年10月26日 下午2:40:32
 * @author menguer@126.com
 * @version 1.0
 */
public class FilterManager {
	FilterChain filterChain;

	public FilterManager(Target target) {
		filterChain = new FilterChain();
		filterChain.setTarget(target);
	}

	public void setFilter(Filter filter) {
		filterChain.addFilter(filter);
	}

	public void filterRequest(String request) {
		filterChain.execute(request);
	}
}
